/*
 * @Descripttion:
 * @Author: voanit
 * @Date: 2022-03-22 08:39:42
 * @LastEditors: voanit
 * @LastEditTime: 2022-03-22 08:44:12
 */
export default function user(state = 'jack', action) {
  switch (action.type) {
    case 'user/add':
      return 'rose'
    case 'user/update':
      return 'tom'
    default:
      return state
  }
}
